<?php


class route
{
    protected $_module;

    protected $_controller;

    protected $_action;

    protected $_parameters = array();

    public function _getExceptionForImplementation($method){
        return new Exception\Implementation("{$method} method not Implementated");
    }

    public static function dispath(){
        

        $pathInfo = $_SERVER['PATH_INFO'];

        $arr = explode('/', $pathInfo);

        if(!$arr[1]){
            $this->_getExceptionForImplementation('1');
        }
        if(!$arr[2]){
            $this->_getExceptionForImplementation('1');
        }
        if(!$arr[3]){
            $arr[3] = 'index';
        }


        
    }
    

}

route::dispath();

